<?php
/**
 * 客服管理
 * 跃飞科技版权所有 @2017
 * Date: 2017/5/20
 * Time: 13:44
 */
namespace app\admin\controller;

class KfAccount extends Admin
{
    public function add()
    {
        $access_token = $this->get_access_token();
        $url = "https://api.weixin.qq.com/customservice/kfaccount/add?access_token={$access_token}";
        $data = '{"kf_account" : "gtzhong@gtzhong.com","nickname" : "gtzhong","password" : "gtzhong123"}';
        $res =$this->https_request($url,$data);
        p($res);
    }
}